import request from '@/router/axios';
/**
 *
 * 维修执行接口大全
 */
export const getList = (params) => {
  return request({
    url: '/api/mes-product/mro/centerproduct/list',
    method: 'get',
    params: {
      ...params
    }
  });
};
export const getDetail = (id) => {
  return request({
    url: '/api/mes-product/mro/centerproduct/detail',
    method: 'get',
    params: {
      id
    }
  });
};

// 获取维修工站列表
export const getCenterList = (params) => {
  return request({
    url: '/api/mes-product/mro/operatingcenter/list',
    method: 'get',
    params: {
      ...params
    }
  });
};

// 维修开始
export const repairStart = (row) => {
  return request({
    url: '/api/mes-product//mro/centerproduct/repair-start',
    method: 'post',
    data: row
  });
};

// 维修结束
export const repairEnd = (data) => {
  return request({
    url: '/api/mes-product//mro/centerproduct/repair-end',
    method: 'post',
    data
  });
};

// 获取维修代码，不良配置等列表的集合
export const getMrodictList = (params) => {
  return request({
    url: '/api/mes-product/mro/dict/list',
    method: 'get',
    params: {
      ...params
    }
  });
};
